Templating process for a multi-page formatted document

ABSTRACT

The disclosed embodiments include a method performed by computer system. The method can include retrieving a layout object including layout information, receiving an indication of a request for a formatted document, and determining that the formatted document should have multiple pages with a common layout feature. The method can further include dynamically generating a template for the formatted document based on the layout information of the layout object and generating the formatted document by using the template to create the multiple pages of the formatted document with the common layout feature.

CROSS-REFERENCE TO RELATED APPLICATIONS

This nonprovisional patent application is a continuation application of U.S. patent application Ser. No. 16/696,782, filed Nov. 26, 2019, now U.S. Pat. No. 11,210,460, and entitled, “TEMPLATING PROCESS FOR A MULTI-PAGE FORMATTED DOCUMENT,” U.S. patent application Ser. No. 16/696,782 is a continuation application of U.S. patent application Ser. No. 15/271,875, filed Sep. 21, 2016, now U.S. Pat. No. 10,496,741 and entitled, “DYNAMIC INTERMEDIATE TEMPLATES FOR RICHLY FORMATTED OUTPUT,” each of which are herein incorporated by reference in their entirety for all purposes.

FIELD

The disclosed teachings generally relate to data processing. The disclosed teachings more particularly to using dynamic intermediate templates for generating richly formatted output based on records in a cloud platform, such as the SALESFORCE platform.

BACKGROUND

Cloud platforms such as the salesforce (a trademark of Salesforce.com, Inc.) platform allow for sharing processing resources and data in a multi-tenant network that offers computing services on demand to customers. More generally, cloud computing enables ubiquitous, on-demand access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services), which can be rapidly provisioned and released with minimal management effort. For example, the salesforce platform can provide numerous companies with an environment to deploy applications that provide interfaces for case management and task management, and a system for automatically handling events.

The SALESFORCE platform can facilitate processing millions, hundreds of millions, or even billions of records while optimizing the performance of data loads and integration into a company's services. However, cloud-based platforms that provide multi-tenant processing impose limits in an effort to uniformly distribute access to resources, which create an ever present issue for customers that work with large volumes of data. The SALESFORCE platform imposes limits that create an issue for customers seeking to process large volumes of data in a reasonable period of time. For example, the SALESFORCE platform can limit processing time for an output rendering process in a synchronous CPU (central processing unit) context. If an output cannot be rendered within the time limit, the output rendering process will fail.

SUMMARY

Introduced here is a technique including at least one computer-implemented method and at least one system for generating a formatted output document using a dynamic templating process. The computer-implemented method can be performed in, e.g., a SALESFORCE application development platform. The method can include retrieving a layout object including layout information via a user interface, extracting the layout information from the layout object, receiving a user request for the formatted output document, dynamically generating a template for the formatted output document based on the layout information extracted from the layout object, generating the formatted output document by inserting data into the template, and outputting the formatted output document in response to the user request.

In some embodiments, a computer-implement method performed by a cloud-based platform includes retrieving a layout object including layout information via a user interface, extracting the layout information from the layout object, in response to a user request for the formatted output document, dynamically generating a template for the formatted output document based on the layout information extracted from the layout object, the template including a table that has a single table row, expanding the table including the single table row into a table including a plurality of table rows based on a tabular dataset to be inserted, generating the formatted output document by inserting data including the tabular dataset into the template, and outputting the formatted output document in response to the user request.

The computer system can utilize, e.g., a SALESFORCE application development platform. The computer includes a processor and a memory. The memory includes instructions which, when executed by the processor, can cause the computer system to retrieve a layout object including layout information via a user interface and extract the layout information from the layout object, dynamically generate a template for the formatted output document based on the layout information extracted from the layout object in response to a user request for a formatted output document, and generate the formatted output document by inserting data into the template and output the formatted output document.

Other aspects of the disclosed embodiments will be apparent from the accompanying figures and detailed description.

This Summary is provided to introduce a selection of concepts in a simplified form that are further explained in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

BRIEF DESCRIPTION OF THE DRAWINGS

Various embodiments or examples (“examples”) are disclosed in the following detailed description and the accompanying drawings:

FIG. 1 is a block diagram of a cloud-based system that provides a dynamic templating solution for generating richly formatted output in a flexible and scalable manner, according to some embodiments of the present disclosure.

FIG. 2 is a flow chart illustrating an example of a template rendering process for generating formatted output, according to some embodiments of the disclosure.

FIG. 3 is a flow chart illustrating an example of a process for generating an intermediate template and inserting tabular data, according to some embodiments of the disclosure.

FIG. 4 is a block diagram illustrating components of a dynamic templating system, according to some embodiments of the disclosure.

FIG. 5 is a block diagram illustrating a computer operable to implement the disclosed technology according to some embodiments of the present disclosure.

DETAILED DESCRIPTION

The embodiments set forth below represent the necessary information to enable those skilled in the art to practice the embodiments, and illustrate the best mode of practicing the embodiments. Upon reading the following description in light of the accompanying figures, those skilled in the art will understand the concepts of the disclosure and will recognize applications of these concepts that are not particularly addressed here. It should be understood that these concepts and applications fall within the scope of the disclosure and the accompanying claims.

The purpose of terminology used herein is only for describing embodiments and is not intended to limit the scope of the disclosure. Where context permits, words using the singular or plural form may also include the plural or singular form, respectively.

As used herein, unless specifically stated otherwise, terms such as “processing,” “computing,” “calculating,” “determining,” “displaying,” “generating,” or the like, refer to actions and processes of a computer or similar electronic computing device that manipulates and transforms data represented as physical (electronic) quantities within the computer's memory or registers into other data similarly represented as physical quantities within the computer's memory, registers, or other such storage medium, transmission, or display devices.

As used herein, terms such as “connected,” “coupled,” or the like, refer to any connection or coupling, either direct or indirect, between two or more elements. The coupling or connection between the elements can be physical, logical, or a combination thereof.

Processing large volumes of data requires a complex scalable computing infrastructure that is cost-prohibitive to many businesses. As such, businesses turn to cloud computing to use a shared pool of configurable computing resources that provide scalable services for many of these applications. Cloud-based applications are accessible through a portal (e.g., website) connected to a cloud infrastructure over a network. An example of a cloud-based platform includes the Salesforce platform.

Manipulation of even moderately large data sets on a cloud-based platform can be difficult due to constraints imposed on users to manage multiple users accessing the same cloud-based platform. For example, a cloud-based platform can limit processing time for an output rendering process in a synchronous CPU context. If an output cannot be rendered within the time limit, the output rendering process will fail. These constraints limit the utility of cloud-based platforms to process large volumes of data, which is required by, for example, applications for payroll, billing, customer relationship management, and the like. Particularly, a process for creating a formatted output for those applications can be expensive in terms of CPU time and can be difficult to scale. The rendering process can fail if the process requires a CPU time that exceeds the time limited for a synchronous CPU context, imposed by the cloud-based platform.

The disclosed embodiments include at least one technique that provides a dynamic templating solution for generating richly formatted output (e.g., reports in HTML, also referred to as HyperText Markup Language). Such a dynamic templating solution is more flexible than conventional methods and is easy to scale. The disclosed technique uses intermediate templates to alleviate some of the processing time that is required by conventional methods. Before fetching and processing the data to be presented in the output, the disclosed technique has already defined the layout of the output. Based on the already defined layout, the disclosed technique can pre-process intermediate templates (e.g., based on HTML).

The disclosed technique provides a dynamic templating solution on a cloud-based platform (e.g., SALESFORCE platform) using, e.g., APEX, which is a proprietary JAVA-like programming language (e.g., class-based, object-oriented) for FORCE.COM (a platform as a service for SALESFORCE platform). The dynamic templating solution using APEX is more flexible and scalable than static templates that are written in VISUALFORCE, which is an XML syntax typically used to generate component-based user interface based on tag-based markup language (e.g., HTML). The dynamic template is pre-rendered to contain tokens in places where data will be inserted. If the template has tables, the disclosed technique can render a table row that is wrapped in one or more tokens. The table row can be repeated (by, e.g., creating a new template) by an intermediate service a number of times required based on the layout of the data output.

The dynamic templating process provides users an easy way to modify the data layout of the formatted output document. Conventional static templates are written using computer language (e.g., VISUALFORCE). A user may need to hire an expert or a consultant with expert knowledge of VISUALFORCE to change the layout of the report. In contrast, with the dynamic templating process, a customer can easily change the data layout by modifying layout objects via a graphic user interface. When a user requests to run a report, the cloud platform can generate a dynamic template based on the layout data extracted from the layout objects on the fly. Then a formatted report document is generated by inserting data into the dynamic template.

Furthermore, a dynamic template can be rendered in the backend across multiple asynchronous CPU contexts. Rendering of the dynamic template thus can use more CPU time, and as such, can handle larger data volumes than a conventional static template.

An example of a specific application that could benefit from the disclosed embodiments includes, e.g., subscription billing services, which typically require processing large volumes of records. However, the disclosed architecture has broad applicability to scale processing in the salesforce platform or any similar cloud-based service to process large volumes of data to generate a richly formatted output.

FIG. 1 is a block diagram of a cloud-based system 10 that provides a dynamic templating solution for generating richly formatted output in a flexible and scalable manner, according to some embodiments of the present disclosure. The system 10 includes components such as a cloud platform 12 (e.g., the salesforce platform), one or more service provider servers 14 that use cloud-based services to provide add-on applications, and one or more client devices 16 that use the add-on applications, all of which are interconnected over a network 18, such as the Internet, to provide parallel processing of a large volume of data.

The network 18 may include any combination of private, public, wired, or wireless portions. Data communicated over the network 18 may be encrypted or unencrypted at various locations or along different portions of the network 18. Each component of the system 10 may include combinations of hardware and/or software to process data, perform functions, communicate over the network 18, and the like. For example, any component of the system 10 may include a processor, memory or storage, a network transceiver, a display, an operating system, and application software (e.g., for providing a user portal), and the like. Other components, hardware, and/or software included in the system 10 are well known to persons skilled in the art and, as such, are not shown or discussed herein.

The cloud platform 12 can provide access to a shared pool of configurable computing resources including servers, storage, applications, software platform, networks, services, and the like accessed by the service provider servers 14 to offer add-on applications to client devices 16. The salesforce platform (e.g., the cloud platform 12) supports multiple tenants and is commonly referred to as a platform as a service (PaaS).

The PaaS is provided to developers for creating the add-on applications that run on the components of the cloud platform 12. Force.com is an example of a PaaS that hosts applications hosted on Salesforce.com, which is an example of a cloud platform. For example, add-on applications can provide subscription billing services to users using the client devices 16. The subscription billing services are provided by the service provider servers 14 and include applications built on the software platform of the cloud platform 12.

The service provider servers 14 may include any number of server computers that provide the add-on applications such as subscription billing services, which allow businesses to automatically bill their customers for goods or services on a pre-arranged schedule. The billing services may support installment payments, usage-based billing, multiple charging methods (e.g., tiered or capped). Although shown separately from the cloud platform 12, the service provider servers 14 may be included as part of the cloud platform 12.

The service provider servers 14 may provide or administer a user interface (e.g., website) accessible from the client devices 16. The user interface may include features such as dashboard analytics to provide insight into how a business is performing. Examples of businesses that could benefit from subscription billing services range from SaaS (Software as a Service) providers to energy and utility companies.

The add-on applications provided by the service provider servers 14 are built using a particular programming language. For example, Force.com applications can be built using Apex (a proprietary JAVA-like programming language (e.g., class-based, object-oriented) for Force.com to process data at the backend of the cloud platform) and/or Visualforce (an XML syntax typically used to generate HTML). The code used to build applications may include functions that are accessible by the add-on applications.

The add-on applications process large volumes of data generated by businesses. For example, the service provider servers 14 can provide subscription billing services that process large volumes of billing data generated by businesses that have a large number of customers that are billed routinely for ongoing services. The data may include sales agreements, usage, and pricing, which are used to generate sales invoices to bill customers. As such, voluminous amounts of data are generated continuously.

Referring back to FIG. 1 , the client devices 16 (referred to herein collectively as client devices 16 and individually as client device 16) are used by users (e.g., businesses using the subscription billing services) to interact with the system 10. Examples of client devices include computers (e.g., Apple MacBook, Lenovo 440), tablet computers (e.g., Apple iPad, Samsung Note, Amazon Fire, Microsoft Surface), smartphones (e.g., Apple iPhone, Samsung Galaxy, Nokia Lumina), and any other device that is capable of accessing the service provider servers 14 over the network 18.

In an effort to accommodate multiple tenants (e.g., multiple service providers), the cloud platform 12 can impose restriction on the processes so that one or more processes do not monopolize shared resources on the cloud platform 12. For example, if a process built using APEX exceeds an imposed limit, the cloud platform 12 can issue a runtime exception indicating that the process cannot be handled. For example, a process rendering a static VISUALFORCE template needs to perform the entire rendering process in one synchronous CPU context, which has a limit of 10 seconds of processing time. If the static template cannot be rendered within the 10-second time limit, the process fails.

The limit can create problems, especially when the process generates a richly formatted output based on a large data volume and/or complex user defined layout or format. Because of the volume of the data records or the complexity of the output layout, the static templating process may not finish the rendering within the 10-second time limit and therefore can fail. In order to avoid the problems, a process for generating richly formatted output can render a dynamic template in the backend of the cloud platform 12 across multiple asynchronous CPU contexts, which have a limit of 60 second of processing time for each asynchronous CPU context. Such a dynamic templating process can handle much larger data volumes and more complex user-defined layout, than the static templating process.

FIG. 2 illustrates an example 200 of a template rendering process for generating formatted output, according to some embodiments of the disclosure. In step 202, a system (e.g., a cloud platform) receives a template definition from a user. In some embodiments, a user defines the template in one or more layout objects of the cloud platform 12 (e.g., a SALESFORCE object). For example, the user can define the template in a SALESFORCE object that is rendered in memory by a programming language such as APEX. In step 204, a rendering process of the system retrieves the object that defines the template, extracts template definition data from the object, and uses the template definition data to create document components (e.g., HTML, elements). In other words, using the objects, the dynamic template can have an extra layer of metadata that defines the shape of the data to be rendered in the template. In step 206, the rendering process joins the document components to produce a string of text that represents a base template.

The SALESFORCE objects that define the template can be hierarchical. For example, an object containing template definition data can include one or more objects that further define the template or document components of the template (e.g., labels, tables, etc.). In some embodiments, each of the individual object has a text template for one or more document components defined within the rendering process, and the joining of the templates for the document components produces the base template.

In some embodiments, the rendering process can use a previously cached template as the base template. For example, the rendering process can first determine whether a previously cached template exists in the memory. If such a previously cached template exists, the rendering process uses the previously cached template as the base template, instead of generating a base template based on template definition data extracted from objects.

In step 208, the rendering process inserts tokens to low level document components (e.g., labels, tables, titles, etc.) to indicate that data will be inserted into the template at positions of the tokens at a later stage. The tokens are simple links for the data and can contain information regarding the locations where the data are stored. The process can read a token, find data corresponding to the token, and insert data into the template. The tokens are generic, in that the tokens themselves do not contain the values of the data, but include keys identifying the data items.

In some embodiments, each page of the base template can be expanded to cover multiple pages of the final rendered report document. For example, a base template may include three pages: a start page, a middle page, and an end page. The start page may contain titles and descriptions. The middle page may contain data tables. The end page may contain total figures and a summary. A corresponding final rendered report document may include multiple middle pages to cover all data tables. Thus, the middle page may need to repeat itself in the rendering process as long as there are still data tables to be added in the final rendered report document.

One advantage of creating the base template, instead of just concatenating HTML, tags to produce a final document, is that there is no need to create template page for each page of the final document. For example, if a page is to be repeated in the final document (e.g., a middle page including data table), the page in the base template can be just copied (repeated or replicated). In addition, the base template can be built and cached in the platform based on the objects that define the template by the user.

In some embodiments, a user may instruct to generate a second final report document, which contains different document data but contains the same document layout and format as the first final report document. In that case, the base template has already been rendered and cached in the platform. The system can just use the base template again for rendering the second final report document. The cached base template eliminates a need to rebuild the same template from scratch.

In step 210, the rendering process replaces singular tokens in the base template with singular data. Singular tokens are tokens in singular document components such as labels, titles, etc. and not in tabular document component (e.g., HTML table tag). Each token represents a data item to be merged into the template to produce a final report document. Those data items are called singular data or non-tabular data.

In step 211, the rendering process expands the table rows of the base template to generate an intermediate template. In step 212, the rendering process replaces tabular tokens in the intermediate template with tabular data. The details of the steps 210 and 212 are disclosed in FIG. 3 .

In step 214, the rendering process generates a final rendered report document based on a markup language (e.g., HTML). In step 216, the platform sends out the final rendered report document to be displayed on a screen of a user device. The final rendered report document is a formatted output. A formatted output is a document object that includes text, tabulated data and/or graphical elements. An example of a formatted output is a web page (in HTML) or a PDF (portable document format) file. The formatted output provides a fine control of layout (e.g., positions and sizes of elements, formats of multiple pages, repeating elements, etc.), fonts and ornamentation of text elements, and positions and sizes of logos and images, etc.

FIG. 3 illustrates an example of a process for generating an intermediate template and inserting tabular data, according to some embodiments of the disclosure. In step 302, the process 300 identifies a table in the base template. In the base template, each table is represented by a table component (e.g., an HTML, table element) that only contains one table row. In step 304, the process determines a number of rows that need to be inserted into the table from the tabular data set. In step 306, the process determines a number of intermediate template pages needed to accommodate the rows of the table.

For each table, the template may need to include more than one template page to accommodate the table. For example, a tabular dataset to be merged into the template may contain 70 rows of data. On the other hand, each template page of the template can contain a maximum number of 20 rows, based on the format of the table and the page. This means that the template needs at least two types of intermediate template pages: a first type of intermediate template page including 20 rows, and a second type of intermediate template page including 10 rows.

In step 308, the process takes the single row of the table in the base template and replicates the row for a number of times based on the number of rows of the intermediate template page. Using the example discussed above, the first type of intermediate template page needs 20 rows, and the second type of intermediate template page needs 10 rows.

In step 310, the process replicates the intermediate template pages if necessary. Using the example discussed above, the process copies the first type of intermediate template page (with 20 rows) three times. As a result, the template now includes 3 intermediate template pages of the first type (with 20 rows for each page) and 1 intermediate template page of the second type (with 10 rows for each page). In total, the four intermediate template pages can contain the 70 rows of the tabular dataset.

In step 312, the process inserts tabular tokens into the rows in the intermediate template pages. Additionally, the process replaces the original base template page with the intermediate template pages.

In step 316, the process determines whether all tables in the original template have been expanded. If not, the process goes back to step 302 to identify another table in the original base template for expansion. Otherwise, the process proceeds to step 318. In step 318, the process outputs the intermediate template with all table expanded. In step 320, the process replaces the tabular tokens of the intermediate template with data of the tabular datasets.

One advantage of the process 300 is that the system does not need to insert each row individually into the base template for each of the row of the tabular dataset. In the base template, only one row is rendered for each table in the base template. Since each row of a table has the same format or layout, the system can generate the row in the template once and then repeats the row with the same format or layout. In other words, the system uses the properties of the defined template (e.g., the maximum number of allowed table rows per page), to determine the layout and number of intermediate template pages needed. Then the system generates the intermediate template pages, replicates the pages if necessary, and merges the data of the tabular datasets into the template.

The dynamic templating process illustrated in FIGS. 2 and 3 are advantageous when compared to conventional static templates. Static templates are written in languages such as VISUALFORCE and shipped with an application. In order to modify the format (e.g., positioning, font, column order, styling, totals, etc.) of the data rendered by a static template, the code of the static template needs to be edited by an expert user who understands the language (e.g., VISUALFORCE). That means a customer needs to hire a consultant with expert knowledge of VISUALFORCE to change the layout or format of a formatted report document generated from the static templates. On the other hand, for a dynamic templating system, a user can easily modify the layout objects in order to change the layout of the template.

FIG. 4 illustrates components of a dynamic templating system. The dynamic templating system can be implemented in, e.g., a SALESFORCE application development platform. The dynamic templating system 400 includes a background processing module 410, a database 420, a graphic user interface module 430, an output module 440. The background processing module 410 includes a dynamic template generating module 412 and a data insertion module 414. With the dynamic templating process, a customer can change the data layout (e.g., positioning, font, column order, styling, totals, etc.) by modifying the layout objects of the cloud platform (e.g., SALESFORCE object) via the graphic user interface module 430.

For example, a service provider server 14 can provide a graphic user interface module 430 for users to create or edit layout objects 450. When a user requests to run a report, the dynamic template generating module 412 can generate a dynamic template 460 based on the layout data extracted from the layout objects 450 on the fly. The dynamic template 460 can be a text object and can be generated using a backend process of the cloud platform (e.g., an APEX rendering process). Then the data insertion module 414 inserts actual data 465 from the database 420 into the dynamic template to generate a formatted report document 470 (e.g., an HTML web page or a PDF file). The output module 440 sends out the formatted report document 470 to, e.g., a user device.

FIG. 5 is a block diagram illustrating a computing device operable to implement the disclosed technology according to some embodiments of the present disclosure. As shown, a computer 20 includes a bus 22 that is operable to transfer data between hardware components. These components include a control 24 (e.g., processing system), a network interface 26, an input/output (I/O) system 28, and a clock system 30. The computer 20 may include other components that are not shown nor further discussed for the sake of brevity. One having ordinary skill in the art will understand any hardware and software that is included but not shown in FIG. 5 .

The control 24 includes one or more processor(s) 32 (e.g., central processing units (CPUs), application specific integrated circuits (ASICs), and/or field programmable gate arrays (FPGAs), and memory 34 (which may include software 36). For example, the memory 34 may include volatile memory, such as random-access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM). The memory 34 can be local, remote, or distributed.

A software program (e.g., software 36), when referred to as “implemented in a computer-readable storage medium,” includes computer-readable instructions stored in the memory (e.g., memory 34). A processor (e.g., processor(s) 32) is “configured to execute a software program” when at least one value associated with the software program is stored in a register that is readable by the processor. In some embodiments, routines executed to implement the disclosed embodiments may be implemented as part of operating system (OS) software (e.g., Microsoft Windows® and Linux®) or a specific software application, component, program, object, module, or sequence of instructions referred to as “computer programs.”

As such, the computer programs typically comprise one or more instructions set at various times in various memory devices of a computer (e.g., computer 20), which, when read and executed by at least one processor (e.g., processor(s) 32), will cause the computer to perform operations to execute features involving the various aspects of the disclosed embodiments. In some embodiments, a carrier containing the aforementioned computer program product is provided. The carrier is one of an electronic signal, an optical signal, a radio signal, or a non-transitory computer-readable storage medium (e.g., memory 34).

Network interface 26 may include a modem or other interfaces (not shown) for coupling the computer 20 to other computers over the network 18. The I/O system 28 may operate to control various I/O devices, including peripheral devices such as a display system 38 (e.g., a monitor or touch-sensitive display) and one or more input device(s) 40 (e.g., a keyboard and/or pointing device). Other I/O devices 42 may include, for example, a disk drive, printer, scanner, or the like. Lastly, the clock system 30 controls a timer for use by the disclosed embodiments.

Operation of a memory device (e.g., memory 34), such as a change in state from a binary one (1) to a binary zero (0) (or vice versa) may comprise a visually perceptible physical change or transformation. The transformation may comprise a physical transformation of an article to a different state or thing. For example, a change in state may involve accumulation and storage of charge or a release of stored charge. Likewise, a change of state may comprise a physical change or transformation in magnetic orientation or a physical change or transformation in molecular structure, such as a change from crystalline to amorphous or vice versa.

Aspects of the disclosed embodiments may be described in terms of algorithms and symbolic representations of operations on data bits stored in memory. These algorithmic descriptions and symbolic representations generally include a sequence of operations leading to a desired result. The operations require physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electric or magnetic signals that are capable of being stored, transferred, combined, compared, and otherwise manipulated. Customarily, and for convenience, these signals are referred to as bits, values, elements, symbols, characters, terms, numbers, or the like. These and similar terms are associated with physical quantities and are merely convenient labels applied to these quantities.

While embodiments have been described in the context of fully functioning computers, those skilled in the art will appreciate that the various embodiments are capable of being distributed as a program product in a variety of forms and that the disclosure applies equally, regardless of the particular type of machine or computer-readable media used to actually effect the embodiments.

While the disclosure has been described in terms of several embodiments, those skilled in the art will recognize that the disclosure is not limited to the embodiments described herein and can be practiced with modifications and alterations within the spirit and scope of the invention. Those skilled in the art will also recognize improvements to the embodiments of the present disclosure. All such improvements are considered within the scope of the concepts disclosed herein. Thus, the description is to be regarded as illustrative instead of limiting. 

What is claimed:
 1. A computer-implemented method comprising: activating a dynamic templating system implemented in a cloud-based platform in response to a request to generate a report, the cloud-based platform storing a plurality of dynamic templates each of which is pre-rendered to contain tokens at which data items are inserted, the plurality of dynamic templates of the dynamic templating system being rendered across multiple asynchronous processor contexts; identifying a table in a base template; determining a number of rows to be inserted into the table; generating an intermediate template to include the number of rows; replicating a subset of rows associated with the table in the base template to include in the intermediate template; inserting a subset of the tokens into the subset of the rows in the intermediate template; replacing the subset of the tokens with data of tabular datasets; and rendering a report document via a user interface based on a formatted document object based on data in the intermediate template, the data in the intermediate template being populated in the report document in response to other data being sent to the cloud-based platform requesting the data in the intermediate template be populated in the report document, the data in the intermediate template being populated by a data insertion module in data communication with a computer in the cloud-based platform.
 2. The method of claim 1, further comprising: expanding the table of the base template into the intermediate template.
 3. The method of claim 2, further comprising: determining the base template includes another table; and generating another intermediate template to include other rows in the another table.
 4. The method of claim 2, further comprising: expanding the table and another table of the base template in association with multiple intermediate templates.
 5. The method of claim 1, further comprising: generating multiple intermediate template pages to accommodate the number of the rows.
 6. The method of claim 1, further comprising: identifying properties of the base template including a maximum number of rows per page; and determining a number of intermediate template to generate to include the number of rows.
 7. The method of claim 1, wherein identifying the table in the base template comprises: identifying a table component in the base template.
 8. The method of claim 7, wherein a token is a tabular token.
 9. The method of claim 1, wherein another token is a singular token.
 10. The method of claim 9, wherein the singular token includes singular document components including one or more of a label, a title, and non-tabular text data.
 11. A system comprising: a data store configured to store data representing a plurality of dynamic templates, each of which is pre-rendered and configured to store datasets; and a processor configured to execute instructions to implement a dynamic templating system configured to: activate a dynamic templating system implemented in a cloud-based platform in response to a request to generate a report, the cloud-based platform storing a plurality of dynamic templates each of which is pre-rendered to contain tokens at which data items are inserted the plurality of dynamic templates of the dynamic templating system being rendered across multiple asynchronous processor contexts; identify a table in a base template; determine a number of rows to be inserted into the table; generate an intermediate template to include the number of rows; replicate a subset of rows associated with the table in the base template to include in the intermediate template; insert a subset of the tokens into the subset of the rows in the intermediate template; replace the subset of the tokens with data of tabular datasets; and render a report document via a user interface based on a formatted document object based on data in the intermediate template, the data in the intermediate template being populated in the report document in response to other data being sent to the cloud-based platform requesting the data in the intermediate template be populated in the report document, the data in the intermediate template being populated by a data insertion module in data communication with a computer in the cloud-based platform.
 12. The system of claim 11 wherein the processor is further configured to: expand the table of the base template into the intermediate template.
 13. The system of claim 12 wherein the processor is further configured to: determine the base template includes another table; and generate another intermediate template to include other rows in the another table.
 14. The system of claim 12 wherein the processor is further configured to: expand the table and another table of the base template in association with multiple intermediate templates.
 15. The system of claim 11 wherein the processor is further configured to: generate multiple intermediate template pages to accommodate the number of the rows.
 16. The system of claim 11 wherein the processor is further configured to: identify properties of the base template including a maximum number of rows per page; and determine a number of intermediate template to generate to include the number of rows.
 17. The system of claim 11 wherein the processor configured to identify the table in the base template is further configured for identifying a table component in the base template.
 18. The system of claim 17 wherein a token is a tabular token.
 19. The system of claim 11 wherein another token is a singular token.
 20. The system of claim 19 wherein the singular token includes singular document components including one or more of a label, a title, and non-tabular text data. 